
import {lazy} from 'react'
import { Navigate } from 'react-router-dom'

import Mainroutes from "./main/routes"
import Userroutes from "./user/routes"
import Adviseroutes from "./advise/routes"
import Newsroutes from "./news/routes"

const Home = lazy(()=>import('./home'))


export default [
    {
        path:"/home",
        element:<Home></Home>,
        children:[
            {
                path:"/home",
                element:<Navigate replace to='/home/main'></Navigate>
            },
            ...Mainroutes,
            ...Userroutes,
            ...Adviseroutes,
            ...Newsroutes,
            
        ]
    },
]